From 7606be28a63be2efed0bd6fd13190934d8aecc2b Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Tue, 23 Jan 2007 14:48:42 +0000 Subject: [PATCH] bimodal blkfront: Create a new node "protocol" in xenstore, add the protocol name it speaks there. Signed-off-by: Gerd Hoffmann --- linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c index 39b40d835f..2a263c0c75 100644 --- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c +++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -180,6 +181,12 @@ again: message = "writing event-channel"; goto abort_transaction; } + err = xenbus_printf(xbt, dev->nodename, "protocol", "%s", + XEN_IO_PROTO_ABI_NATIVE); + if (err) { + message = "writing protocol"; + goto abort_transaction; + } err = xenbus_transaction_end(xbt, 0); if (err) { -- 2.30.2